/**
 * @Description:
 * @Author: saqqdy
 * @LastEditors: saqqdy
 * @Date: 2021-07-18 00:39:35
 * @LastEditTime: 2021-07-18 12:13:07
 */
import merge from 'webpack-merge'

import baseConfig from './webpack/base'
import devConfig from './webpack/dev'
import prodConfig from './webpack/prod'
import { isProd } from './webpack/utils/env'

export default () => (isProd ? merge(baseConfig, prodConfig) : merge(baseConfig, devConfig))
